package com.mxwl.cbg.common.model.source.role;

import lombok.Data;

import java.util.List;

/**
 * 神器的数据封装类
 * 这个类可满足藏宝阁源数据的格式直接转换
 */
@Data
public class ShenQi {
    private Integer skill_level;
    private Integer full;
    private Integer power;
    private String skill_desc;
    private Integer active;
    private Integer my_fu_count;
    private Integer skill;
    private Integer id;
    private Integer illusion;
    private List<Suit> suit;

    @Data
    public static class Suit {

        private Integer max_use_count;
        private Integer curr_illusion;
        private Integer my_use_count;
        private Integer actived;
        private Integer illusion;
        private List<Component> components;
        private List<Attribute> attributes;

        @Data
        public static class Component {
            /// "unlock": 1,
            /// "level": 2,
            private Integer unlock;
            private Integer level;
            private List<WuXingModel> wuxing;

            @Data
            public static class WuXingModel {
                /// "status": 1,
                /// "attr": "抵抗封印 +10",
                /// "wuxingshi_affix": 0,
                /// "affix_disable": 0,
                /// "new_attr": "",
                /// "new_id": 0,
                /// "id": 4,
                /// "wuxingshi_level": 2,
                private Integer status;
                private String attr;
                private Integer wuxingshi_affix;
                private Integer affix_disable;
                private String new_attr;
                private Integer new_id;
                private Integer id;
                private Integer wuxingshi_level;
            }
        }

        @Data
        public static class Attribute {
            /// "new_attr": "速度 +0",
            /// "disable": 0,
            /// "new_id": 1,
            /// "attr": "速度 +11.2",
            /// "id": 1,
            private String new_attr;
            private Integer disable;
            private Integer new_id;
            private String attr;
            private Integer id;
        }
    }
}
